.container {
    display: flex;
    flex-wrap: wrap;
    /*align-items: center;*/
}

.container > div {
    flex: 1 1 150px;
    /*height: 150px;*/
}

.container > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}